import pandas as pd

df_01 = pd.read_excel("../../data/临床体征.xlsx")
df_01.head(2)


def cord2id(list):
    dic = {}
    listData = set(list)
    for idx, word in enumerate(listData):
        dic[word] = idx
    return dic


# 把疾病和症状转换为id字典
dis2id = cord2id(df_01)
print(dis2id)
